package com.smile.service.entity.status;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

@Data
@ToString
public class UpdateTopoData implements Serializable {

    private static final long serialVersionUID = 1L;

    @JSONField(name = "domain")
    private String domain;

    @JSONField(name = "type")
    private Integer type;

    @JSONField(name = "sub_type")
    private Integer subType;

    @JSONField(name = "device_secret")
    private String deviceSecret;

    @JSONField(name = "nonce")
    private String nonce;

    @JSONField(name = "thing_version")
    private String thingVersion;

    @JSONField(name = "sub_devices")
    private List<SubDevice> subDevices;

    @Data
    public static class SubDevice {

        @JSONField(name = "sn")
        private String sn;

        @JSONField(name = "domain")
        private String domain;

        @JSONField(name = "type")
        private Integer type;

        @JSONField(name = "sub_type")
        private Integer subType;

        @JSONField(name = "device_secret")
        private String deviceSecret;

        @JSONField(name = "nonce")
        private String nonce;

        @JSONField(name = "thing_version")
        private String thingVersion;

        @JSONField(name = "index")
        private String index;
    }


}
